sorting dictionary in python

41

d1 = dict(sorted(d.items(), key = lambda x:x[0]))

Comments

Submit
0 Comments